Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODShape


Subtract

The Subtract method modifies this shape by subtracting the specified shape from it.

ODShape Subtract (in ODShape diffShape);
diffShape
A reference to the shape to be subtracted from this shape.
return value
A reference to this shape after the subtraction operation.
DISCUSSION
After this method executes successfully, this shape is equivalent to its previous shape minus the specified shape.

EXCEPTIONS
kODErrNoShapeGeometry
The geometry mode of this shape is kODNeedsGeometry, but the other shape has no geometric representation.
kODErrOutOfMemory
There is not enough memory to subtract the shape.

Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help